package rsj.service.organization;

import rsj.api.account.entity.Organization;
import rsj.api.organization.entity.UpdateIp;

/**
 * 机构
 *
 * @author yuanqinglong
 * @since 2021/7/16 14:36
 */
public interface IOrganizationService {


    /**
     * 添加组织
     *
     * @param organization 组织
     * @return {@link Organization}
     */
    Organization addOrganization(Organization organization);


    /**
     * 得到组织
     *
     * @param orgId org id
     * @return {@link Organization}
     */
    Organization getOrganization(String orgId);


    /**
     * 更新组织
     *
     * @param organization 组织
     */
    void updateOrganization(Organization organization);


    /**
     * 更新的ip地址
     *
     * @param updateIp 更新的ip
     */
    void updateIpAddress(UpdateIp updateIp);
}
